package com.cowain.monitor.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.cowain.monitor.entity.ErpCustomerEntity;
import com.cowain.monitor.entity.ErpCustomerSiteEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *  
 *  * @author 冬暖
 *  * @projectName pms-monitor
 *  * @title     ErpCustomerDao   
 *  * @package    com.cowain.monitor.dao  
 *  * @description    客户信息表       
 *  * @date   2020/8/5 16:23  
 *  * @version V1.0.0
 *  
 */
@Mapper
public interface ErpCustomerDao extends BaseMapper<ErpCustomerEntity> {
    /**
     * 获取所有的ERP客户表信息
     * @param isDel 状态
     * @return 客户信息
     */
    List<ErpCustomerEntity> findCustomerList(@Param("isDel") Long isDel);

    /**
     * 批量修改
     * @param customerEntities 修改的内容
     */
    void updateCustomer(List<ErpCustomerEntity> customerEntities);

    /**
     * 修改关联表信息
     * @param erpCustomerSiteEntity 位置表
     */
    void updateCustomerSite(List<ErpCustomerSiteEntity> erpCustomerSiteEntity);
}
